package icu.d4peng.basic.satoken.properties;

import cn.dev33.satoken.oauth2.config.SaOAuth2Config;
import icu.d4peng.basic.core.constant.ProjectConstant;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * SaOauth2Properties:Oauth2配置
 *
 * @author d4peng <a href="d4peng@qq.com">d4peng@qq.com</a>
 * @since 2023.12.02
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ConfigurationProperties(prefix = SaOauth2Properties.PREFIX)
public class SaOauth2Properties extends SaOAuth2Config {

	/**
	 * 自动配置前缀
	 */
	public static final String PREFIX = ProjectConstant.PREFIX + ".sa-token.oauth2";

	/**
	 * 是否开启
	 */
	private boolean enabled = false;

}
